package com.tg.login.helper;

import android.widget.ImageView;
import com.tg.login.R;

public class CountryRegionHelper {
    public static void setCountryRegionImage(ImageView imageView, int index){
        switch (index){
            case 0:
                imageView.setImageResource(R.mipmap.china_flag);
                break;
            case 1:
                imageView.setImageResource(R.mipmap.hk);
                break;
            case 2:
                imageView.setImageResource(R.mipmap.am);
                break;
            case 3:
                imageView.setImageResource(R.mipmap.tw);
                break;
            case 4:
                imageView.setImageResource(R.mipmap.global);
                break;
        }
    }
}
